<template>
    <v-card :dialogData="dialogData">
        <v-card-title>{{ dialogData.title }}</v-card-title>
        <v-card-text>
            <v-file-input
            :dialogData="dialogData"
            :v-model="dialogData.importFile"
            :label="dialogData.label"
            :accept="dialogData.accept"
            />
        </v-card-text>
        <v-card-actions>
        <v-btn color="primary" @click="callImportMind">导入</v-btn>
        <v-btn text @click="importDialog = false">取消</v-btn>
        </v-card-actions>
    </v-card>
</template>

<script setup>

const props = defineProps({
    dialogData: { type: Object }
})

let emit = defineEmits(['import'])

function callImportMind() {
    console.log("dialog data: ")
    emit("import")
}

</script>